package com.zhentao.model.common.business.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName business_shop
 */
@TableName(value ="business_shop")
@Data
@ApiModel(value = "商家表")
public class BusinessShop implements Serializable {
    /**
     * 商家表
     */
    @TableId(value = "shop_id")
    @ApiModelProperty("商家表id")
    private Integer shopId;

    /**
     * 商店名称
     */
    @TableField(value = "shop_name")
    @ApiModelProperty("商店名称")
    private String shopName;

    /**
     * 商店类型
     */
    @TableField(value = "type_id")
    @ApiModelProperty("商店类型")
    private Integer typeId;

    /**
     * 商店状态（待营业0、营业中1、永久关闭2）
     */
    @TableField(value = "shop_state")
    @ApiModelProperty("商店状态（待营业0、营业中1、永久关闭2）")
    private Integer shopState;

    /**
     * 信息审核状态  0待审核 1 审核通过  2审核拒绝
     */
    @TableField(value = "shop_audit")
    @ApiModelProperty("信息审核状态  0待审核 1 审核通过  2审核拒绝 3人工审核")
    private Integer shopAudit;

    /**
     * 创建时间
     */
    @TableField(value = "shop_createtime")
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date shopCreatetime;

    /**
     * 商家logo
     */
    @TableField(value = "shop_logo")
    @ApiModelProperty("商家logo")
    private String shopLogo;

    /**
     * 商家简介
     */
    @TableField(value = "shop_description")
    @ApiModelProperty("商家简介")
    private String shopDescription;

    /**
     * 拒绝原因
     */
    @TableField(value = "shop_reject")
    @ApiModelProperty("拒绝原因")
    private String shopReject;

    /**
     * 营业执照号码
     */
    @TableField(value = "shop_number")
    @ApiModelProperty("营业执照号码")
    private String shopNumber;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty("用户id")
    private Integer userId;

    @TableField(exist = false)
    private BusinessUser businessUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}